<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>为地图设置投影</title>
    <link rel="stylesheet" type="text/css" href="../css/leaflet.css"  media="all"/>
    <script type="text/javascript" src="../js/leaflet.js"></script>
    <script type="text/javascript" src="../js/iclient-leaflet.js"></script>
</head>
<body>
<!--地图显示的div-->
<div id="map" style="position:absolute;left:0px;right:0px;width:100%;height:100%;"></div>
<script>
    var url ="https://iserver.supermap.io/iserver/services/map-world/rest/maps/World";
    // 初始化地图信息
    map = L.map('map', {
        crs: L.CRS.EPSG4326,
        center: [0, 0],
        maxZoom: 18,
        zoom: 1
    });
    // 添加图层
    L.supermap.tiledMapLayer(url, {noWrap: true}).addTo(map);
</script>
</body>
</html>